package com.xiangqian.factory;

import com.xiangqian.enums.SmsEnum;
import com.xiangqian.plus.ali.AliSmsPlus;
import com.xiangqian.service.SmsMessage;

public class SmsMessageFactory {

    public SmsMessage getAliSmsPlus(SmsEnum smsEnum) {
        switch (smsEnum) {
            case ALI:
                return new AliSmsPlus();
            default:
                throw new IllegalArgumentException("Invalid payment type: " + smsEnum);
        }
    }
}
